@import '@/style/app.scss';

.page-user{
  height: 100%;

  .left{
    width: 80px;
    height: 100%;
    min-height: 700px;
    background: #fff;
    border-right:1px $color-back solid;
    position: fixed;
    left: 0;
    top: 0;
    z-index: $index - 1;


    .menu{
      padding-top: 55px;

      .bottom{
        width: 100%;
        position: absolute;
        bottom: 20px;
        left: 0;

        .item{
          padding: 12px 0;
          font-size: 28px;

          &.error{
            color: $color-error
          }
        }
      }

      .item{
        text-align: center;
        padding: 18px 0;
        display: block;
        color: $color-icon;
        font-size: 30px;
        cursor: pointer;

        &:hover, &.on{
          color: $color;
        }
      }
    }
  }

  .right{
    padding: 30px 30px 30px 110px;
    position: relative;

    .button{
      position: absolute;
      top: 20px;
      right: 30px;
    }
  }

  &-index{
    .title{
      font-size: 18px;
      color: $color-title;
    }

    .plugin{
      margin-top: 30px;
      padding: 50px 0;
      text-align: center;
      background: #fff;
      box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
      border-radius: 6px;
      cursor: pointer;
      position: relative;

      &:hover{
        box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
      }

      img{
        width: 60px;
      }

      .name{
        padding-top: 10px;
        font-size: 16px;
        color: $color-font;
      }

      .content{
        padding-top: 10px;
        font-size: 14px;
        color: $color-icon;
      }

      .my{
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 22px;
        color: $color-success;
      }
    }

    .version-box{
      padding: 30px 0;
      margin-left: -35px;

      .version{
        font-size: 16px;
        color: $color;
      }

      .content{
        font-size: 14px;
        color: $color-font;
        padding-top: 10px;
      }
    }

    .news-box{
      padding: 20px 0 50px;

      .news{
        padding: 10px 0;
        cursor: pointer;

        &:hover .title{
          color: $color;
        }

        .title{
          color: $color-content;
          font-size: 14px;
          line-height: 20px;
        }
  
        .time{
          font-size: 12px;
          color: $color-icon;
          line-height: 20px;
          text-align: right;
        }

        .on{
          .title{
            color: $color;
            font-size: 20px;
            line-height: 25px;
            padding-bottom: 10px;
            text-align: center;
          }

          .time{
            text-align: center;
          }
        }
      }
    }
  }

  &-checkout{
    .item{
      padding: 40px 20px 20px;
      cursor: pointer;
      text-align: center;
      position: relative;
      border-bottom: 1px $color-back solid;

      &:hover{
        box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
      }

      &.my{
        border: 1px $color solid;
        border-radius: 5px;
      }

      .clean{
        position: absolute;
        top: 10px;
        right: 10px;
        color: $color-icon;
        font-size: 20px;
        padding: 10px;

        &:hover{
          color: $color-error;
        }
      }

      .title{
        color: $color-font;
        padding: 20px 0;
        font-size: 16px;
      }

      .icon{
        font-size: 40px;
        color: $color;

        &.error{
          color: $color-error;
        }
      }

      .bottom{
        position: relative;
        height: 30px;

        .status{
          width: 100%;
          line-height: 30px;
          position: absolute;
          top: 0;
          left: 0;
          background: #fff;
          color: $color;
          font-size: 14px;

          &.error{
            color: $color-error;
          }
        }
      }
    }
  }

  &-account{
    .plugin{
      width: 100%;
      display: flex;
      
      .img{
        width: 24px;
        height: 24px;
        position: relative;
      }

      img{
        width: 22px;
        height: 22px;
        border: 1px #fff solid;
        background: #fff;
        border-radius: 50%;
        position: absolute;
        top: 0;
        left: 0;
      }
    }
    .permission{
      .title{
        color: $color-title;
        font-size: 14px;
        padding-bottom: 20px;
        font-weight: bold;
      }
      .item{
        line-height: 22px;
        margin-bottom: 20px;
        border: 1px $color-icon solid;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
  
        &:hover{
          border-color: $color-content;
        }
  
        &.on{
          border-color: $color;
        }
  
        .name{
          color: $color-title;
          font-size: 14px;  
        }
        .body{
          color: $color-content;
          font-size: 12px;
          padding-top: 3px;
        }
        img{
          float: left;
          margin: 0 10px 0 -10px;
          height: 45px;   
        }
      }
    }
  }

  &-config{
    .header{
      margin: 20px 0;
      padding: 30px 0;
      border-bottom: 1px $color-back solid;

      .username{
        padding-bottom: 15px;
        color: $color;
        font-size: 18px;
      }

      .time{
        color: $color-content;
        font-size: 14px;
      }

      .update{
        float:right;
        margin-top: 5px;
      }

      .logo{
        height: 55px;
        float:left;
        margin-right: 20px;
        overflow: hidden;
        cursor: pointer;
        div{
          height: 100%;
        }

        span{
          line-height:55px;
          padding:0 20px;
          display:block;
          font-size: 14px;
          background-color: $color-back;
          border-radius: 5px;
          color: $color-content;
        }
  
        img{
          height: 100%;
        }
      }
    }
  }
}